package com.team.runsfast.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * @Description:
 * @Author: 邢朋辉
 * @Date: 2022/09/20 11:00:07
 */
@Data
@TableName("t_userlog")
@NoArgsConstructor
public class UserMsg {
    /**用户消息ID*/
    @TableId(type = IdType.AUTO)
    private Long id;
    /**用户ID*/
    private Long uid;
    /**消息类型 1.系统消息 2.等级升级消息 3.积分消费消息*/
    private Integer type;
    /**消息内容*/
    private String info;
    /**创建时间*/
    private Date ctime;

    public UserMsg(Long uid, Integer type, String info) {
        this.uid = uid;
        this.type = type;
        this.info = info;
        this.ctime=new Date();
    }
}